using System;
using System.Collections.Generic;
using System.Text;
using Emlyn.Common.Data.DBUpdater;
using Emlyn.Common.Data.SqlServer.SqlManagers;

namespace Emlyn.Website.EmlynORegan.DBUpdateRules
{
    public class DUR_0080_DropArticleListDBObjects: IDBUpdaterRule
    {
        #region IDBUpdaterRule Members

        public int UpgradeFromVersion()
        {
            return 70;
        }

        public int UpgradeToVersion()
        {
            return 80;
        }

        public void PerformUpgrade()
        {
            string lSql =
                "drop table tblEOArticleList_ArticleList ";
            SqlManager.Execute(lSql);

            lSql =
                "drop table tblEOArticle_ArticleList ";
            SqlManager.Execute(lSql);

            lSql =
                "drop table tblEOArticleList ";
            SqlManager.Execute(lSql);
        }

        #endregion
    }
}
